<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>dbphi</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab Function</center>
    <div align="right">Last update : April 1997</div>
    <p>
      <b>dbphi</b> -  frequency response to phase and magnitude representation</p>
    <h3>
      <font color="blue">Calling Sequence</font>
    </h3>
    <dl>
      <dd>
        <tt>[db,phi] =dbphi(repf)  </tt>
      </dd>
    </dl>
    <h3>
      <font color="blue">Parameters</font>
    </h3>
    <ul>
      <li>
        <tt>
          <b>db,phi</b>
        </tt>: vector of gains (db) and phases (degrees)</li>
      <li>
        <tt>
          <b>repf</b>
        </tt>: vector of complex frequency response</li>
    </ul>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>
      <tt>
        <b>db(k)</b>
      </tt> is the magnitude of <tt>
        <b>repf(k)</b>
      </tt> expressed in dB i.e.
    <tt>
        <b>db(k)=20*log(abs(repf(k)))/log(10)</b>
      </tt> and <tt>
        <b>phi(k)</b>
      </tt> is the phase
    of <tt>
        <b>repf(k)</b>
      </tt> expressed in degrees.</p>
    <h3>
      <font color="blue">See Also</font>
    </h3>
    <p>
      <a href="repfreq.htm">
        <tt>
          <b>repfreq</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="../graphics/bode.htm">
        <tt>
          <b>bode</b>
        </tt>
      </a>,&nbsp;&nbsp;</p>
  </body>
</html>
